FROM openjdk:8
LABEL maintainer="Conor <x403368945@126.com>"
RUN mkdir -p /app
WORKDIR /app
COPY src src
# /app/app.jar
COPY target/*.jar app.jar
ENTRYPOINT java ${JAVA_OPTS} -jar app.jar
VOLUME ['/app/files','/app/logs']
EXPOSE 8080
